package moredb;

/**
 * @author kongyz
 * @date 2018/6/17 10:34
 * @Description:
 */
public class Demo {
    public static void main(String[] args) {
        ConnectionFactory factory=new ConnectionFactory();
        DatabaseConnection mysqlConnection= factory.getConnection("mysql");
        System.out.println(mysqlConnection.connection());

        DatabaseConnection oracleConnection= factory.getConnection("oracle");
        System.out.println(oracleConnection.connection());

        DatabaseConnection mssqlConnection= factory.getConnection("mssql");
        System.out.println(mssqlConnection.connection());
    }
}
